Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip fileno before validating #18497

Merged
merged 16 commits into from
Oct 3, 2024
Merged

Conversation

michelpmcdonald
Copy link
Contributor

@michelpmcdonald michelpmcdonald commented Sep 18, 2024

Summary

Consumers are submitting multipart files with leading and trailing whitespace for the veteran's metadata fileNumber.

They should not be doing this, and we do reject those submissions, but it's easy enough for us to strip and keep on truck'in.

Team banana-peels, we own this code

Related issue(s)

API-40166

Testing done

  • New code is covered by unit tests
    Unit test add leading and trailing whitespace to fileNumber and confirm that the whitespace is removed and the submission passes our validation

What areas of the site does it impact?

Benefits Intake PDF upload submissions

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.

@va-vfs-bot va-vfs-bot temporarily deployed to API-40166-trim_fileno_bi/main/main September 18, 2024 15:29 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-40166-trim_fileno_bi/main/main September 18, 2024 17:34 Inactive
Copy link
Contributor

@mathisto mathisto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely test coverage.

thumb-up-ok-gif

@mathisto
Copy link
Contributor

@department-of-veterans-affairs/backend-review-group Would y'all be willing to take a peek at this and #18490 ? We feel confident in the changes but have been unable to keep the branch fresh long enough to secure a review and merge.

@va-vfs-bot va-vfs-bot temporarily deployed to API-40166-trim_fileno_bi/main/main September 30, 2024 18:59 Inactive
Copy link

github-actions bot commented Oct 3, 2024

Backend-review-group approval confirmed.

@michelpmcdonald michelpmcdonald merged commit 062dad4 into master Oct 3, 2024
22 checks passed
@michelpmcdonald michelpmcdonald deleted the API-40166-trim_fileno_bi branch October 3, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants